using IQIGame.Onigao.GamePlay;

namespace IQIGame.Onigao.Logic
{
    /// <summary>
    /// 改变当前玩家的相机参数(单机执行)
    /// 参数组1:1.相机id（0表示还原）
    /// </summary>
    public class ExecChangeCurPlayerCamera : BaseServiceExecution
    {
        public override void Execute(LevelRegion region, LevelPlayer player)
        {
            var config = _config as ExecParamChangeCurPlayerCamera;

            int cameraCid = config.cameraCid;

            player.customCameraCid = cameraCid;

            region.NotifyChangeCamera(player, cameraCid);
        }
    }
}
